import logging
def log_set():
    logging.basicConfig(filename="weidudiansanglog.txt",filemode="a+",level=logging.DEBUG,format="%(pathname)s--%(asctime)s--%(message)s")